using System;
using CodeAngel.Domain.Framework;

namespace CodeAngel.Domain
{
	public partial class User_Permission
	{

		#region SetDefaultPropertyValues

        /// <summary>
        /// Sets the properties of a new entity to its default values.
        /// </summary>
		internal override void SetDefaultPropertyValues()
		{
            this.User_PermissionID = Guid.NewGuid();
            
            if (this.ParentEntity is Permission)
                this.Permission = this.ParentEntity as Permission;
            else if (this.ParentEntity is User)
                this.User = this.ParentEntity as User;
		}

		#endregion

		#region ToString

        /// <summary>
        /// Provides a user friendly string representation of this User_Permission.
        /// </summary>
		public override string ToString()
		{
            // TODO: identify a user friendly string reresentation of a User_Permission
            return base.ToString();
		}

		#endregion

	}
}

